export const resetFormValue = (formData: any) => {
	const keys = [
		'materialNums',
		'workExClass',
		'examineType',
		'retrospectType',
		'rootMaterialNum',
		'rootBatchNum',
		'getFlag',
	];
	for (const key in formData) {
		if (keys.includes(key)) {
			continue;
		}
		// object类型处理，避免object类型被置为undifined，避免业务层因数据类型改变出现异常的情况
		if (formData[key] !== null && typeof formData[key] === 'object') {
			// 数组、对象、函数类型
			formData[key] = new formData[key].constructor();
			continue;
		}
		formData[key] = undefined;
	}
	return formData;
};
